<template>
  <div class="box">
    <!-- 空状态 -->
    <van-empty image="network" description="描述文字" />
    <van-button plain @click="goHome" type="primary">去首页</van-button>
  </div>
</template>

<script setup>
// 导入路由
import { useRouter } from "vue-router";

let router = useRouter();

// 点击事件(跳转到home页面)
let goHome = () => router.push("/home");
</script>

<style seoped>
.box {
  text-align: center;
}
</style>